<?php 
#
# This File contains one function which creates Thumbnails for
# .blend Format
#
# by Team Acerola
#
//	blendtoprev('C:\xampp\xampp\htdocs\Acerola\home\includes\\', 'fight.blend');	
function blendtoprev($path, $file, $blendercommand = 'C:\Program Files\Blender Foundation\Blender\blender.exe')
{
	if(file_exists($path . '' . $file))
	{
		$exec = '"' . $blendercommand . '" -b ' . $path . '' . $file . ' -F JPEG -o ' . $path . ' -f 1';
		$output = shell_exec($exec);
		return true;
	}
	else
	{
		return false;
	}
}
?>